package org.colafries.admin.service.index;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.colafries.admin.entity.domain.index.LogicFactTable;
import org.colafries.admin.entity.vo.index.LogicFactTblReqVO;

import java.util.List;

/**
 * <p>
 * 逻辑事实表 服务类
 * </p>
 *
 * @author Ann
 * @since 2024-06-03
 */
public interface ILogicFactTableService extends IService<LogicFactTable> {

    /**
     * 新增逻辑事实表
     * @param vo
     * @return int
     * @Author anning
     * @Date 2024/6/3
     */
    int add(LogicFactTblReqVO vo);

    /**
     * 修改逻辑事实表
     * @param vo
     * @return int
     * @Author anning
     * @Date 2024/6/4
     */
    int update(LogicFactTblReqVO vo);

    /**
     * 删除逻辑事实表
     * @param vo
     * @return int
     * @Author anning
     * @Date 2024/6/5
     */
    int delete(LogicFactTblReqVO vo);


    /**
     * 查询逻辑事实表list
     * @param vo
     * @return java.util.List<org.colafries.admin.entity.vo.index.LogicFactTableRespVO>
     * @Author anning
     * @Date 2024/6/3
     */
    List<LogicFactTable> listAll(LogicFactTblReqVO vo);

    /**
     * 分页查询逻辑事实表
     * @param vo
     * @return com.baomidou.mybatisplus.core.metadata.IPage<org.colafries.admin.entity.vo.index.LogicFactTableRespVO>
     * @Author anning
     * @Date 2024/6/3
     */
    IPage<LogicFactTable> pageList(LogicFactTblReqVO vo);

    /**
     * 根据逻辑事实表code查询
     * @param tableCode
     * @return org.colafries.admin.entity.domain.index.LogicFactTable
     * @Author anning
     * @Date 2024/6/13
     */
    LogicFactTable queryByCode(Long tableCode);

}
